package com.tsystems.school.jabber.server;

import java.util.concurrent.ConcurrentHashMap;


public class ConnectedUsers {
  public static ConcurrentHashMap<String, ConnectedUser> users = new ConcurrentHashMap<String, ConnectedUser>();
  public static void putUser(ConnectedUser user){
    users.put(user.getLogin(), user);
  }
  public static void putUser(String login, ConnectedUser user){
    users.put(login, user);
  }
  
  public static ConnectedUser getUser(String login){
    return users.get(login);
  }
  
}